// src/layout/Index.scss

.home-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  /* ==================== HEADER ==================== */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
  
      .collapse-trigger {
        font-size: 20px;
        color: #1890ff;
        transition: color 0.3s, transform 0.2s;
        &:hover {
          color: #40a9ff;
          transform: scale(1.1);
        }
      }
  
      .logo {
        height: 40px;
        width: 40px;
        border-radius: 8px;
        object-fit: contain;
      }
  
      /* 1. 侧边栏未折叠时，标题区 */
      .title-container-flex {
        display: flex;
        justify-content: center;  /* 水平居中 */
        align-items: center;      /* 垂直居中 */
        height: 60px;             /* 侧栏顶部留给标题的固定高度 */
        background: transparent;  
      }
      
      /* 文字渐变样式保持不变 */
      .title {
        font-size: 24px;
        right: 500px;
        position: absolute;
        font-weight: 700;
        background: linear-gradient(45deg, #1890ff, #722ed1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: opacity 0.3s;
      }
    }
  
    .header-right {
      display: flex;
      align-items: center;
      gap: 12px;
  
      .avatar {
        background: #7265e6;
      }
  
      .nickname {
        font-size: 16px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        transition: color 0.3s;
        &:hover {
          color: #1890ff;
        }
      }
    }
  }
  
  /* ==================== SIDER ==================== */
  .sider {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    transition: width 0.2s ease;
    
  
    /* 折叠时把菜单文字隐藏 */
    &.ant-layout-sider-collapsed .title {
      opacity: 0;
    }
  }
  
  .sider-menu {
    height: 100%;
    border-right: none;
    border-left: none;
    padding-left: 0px;
    padding-top: 5px;
    background: transparent;
  
    .ant-menu-item,
    .ant-menu-submenu-title {
      border-radius: 8px;
      margin: 4px 12px;
  
      &:hover {
        background: linear-gradient(45deg, rgba(24, 144, 255, 0.2), rgba(24, 144, 255, 0.1));
      }
      &.ant-menu-item-selected {
        background: linear-gradient(45deg, #1890ff, #36cfc9) !important;
        color: #fff !important;
        .anticon {
          color: #fff !important;
        }
      }
  
      .anticon {
        font-size: 18px;
        color: #666;
        transition: color 0.3s;
      }
  
      span {
        font-size: 16px;
        font-weight: 500;
      }
    }
  
    .ant-menu-submenu-arrow {
      color: #666;
    }
  }
  
  /* ==================== BREADCRUMB ==================== */
  .breadcrumb-container {
    
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    margin: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
    .ant-breadcrumb {
      font-size: 14px;
  
      .ant-breadcrumb-link a {
        color: #1890ff;
        &:hover {
          text-decoration: underline;
        }
      }
  
      .ant-breadcrumb-separator {
        margin: 0 8px;
      }
    }
  }
  
  /* ==================== CONTENT ==================== */
  .content-layout {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
  }
  
  
  
  /* ==================== FOOTER ==================== */
  .footer {
    text-align: center;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: #666;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  
    .footer-icon {
      margin-right: 6px;
      color: #1890ff;
    }
  
    a {
      color: inherit;
      &:hover {
        color: #1890ff;
      }
    }
  }
  
  /* ==================== 通用动画 ==================== */
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 0.9;
    }
    50% {
      transform: scale(1.1);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0.9;
    }
  }
  